package com.tianji.learning.service;

import com.tianji.learning.domin.po.PointsRecord;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tianji.learning.domin.vo.PointsStatisticsVO;
import com.tianji.learning.enums.PointsRecordType;
import com.tianji.learning.query.PointsRecordPageQuery;

import java.time.LocalDate;
import java.util.List;

/**
 * <p>
 * 学习积分记录，每个月底清零 服务类
 * </p>
 *
 * @author author
 * @since 2023-11-09
 */
public interface IPointsRecordService extends IService<PointsRecord> {

    void addPointsRecords(Long userId, Integer points, PointsRecordType sign);

    List<PointsStatisticsVO> queryMyPointsToday();

    void createTable(String tableName);

    List<PointsRecord> queryPointsRecordList(PointsRecordPageQuery query);
}
